package com.iris.live.services.data.models;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * Created by xiO on 2016/11/17.
 */
@Entity
@Table(name = "报价精品详细表_精品", schema = "live", catalog = "")
public class 报价精品详细表精品Model {
    private Integer id;
    private Integer 编号;
    private Integer comboId;
    private Integer productId;
    private Timestamp 预计施工时间;
    private Date 实际施工日期;
    private String 施工种类;
    private String 备注;
    private String 申请人;
    private Integer 数量;
    private Timestamp purchaseDt;
    private Timestamp modifyDt;
    private Timestamp refundDt;
    private String orderStatus;
    private BigDecimal refundAmount;
    private String refundReason;
    private String contractId;
    private String wip;
    private String serviceProvider;
    private String isDelete;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "编号")
    public Integer get编号() {
        return 编号;
    }

    public void set编号(Integer 编号) {
        this.编号 = 编号;
    }

    @Basic
    @Column(name = "comboId")
    public Integer getComboId() {
        return comboId;
    }

    public void setComboId(Integer comboId) {
        this.comboId = comboId;
    }

    @Basic
    @Column(name = "productId")
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "预计施工时间")
    public Timestamp get预计施工时间() {
        return 预计施工时间;
    }

    public void set预计施工时间(Timestamp 预计施工时间) {
        this.预计施工时间 = 预计施工时间;
    }

    @Basic
    @Column(name = "实际施工日期")
    public Date get实际施工日期() {
        return 实际施工日期;
    }

    public void set实际施工日期(Date 实际施工日期) {
        this.实际施工日期 = 实际施工日期;
    }

    @Basic
    @Column(name = "施工种类")
    public String get施工种类() {
        return 施工种类;
    }

    public void set施工种类(String 施工种类) {
        this.施工种类 = 施工种类;
    }

    @Basic
    @Column(name = "备注")
    public String get备注() {
        return 备注;
    }

    public void set备注(String 备注) {
        this.备注 = 备注;
    }

    @Basic
    @Column(name = "申请人")
    public String get申请人() {
        return 申请人;
    }

    public void set申请人(String 申请人) {
        this.申请人 = 申请人;
    }

    @Basic
    @Column(name = "数量")
    public Integer get数量() {
        return 数量;
    }

    public void set数量(Integer 数量) {
        this.数量 = 数量;
    }

    @Basic
    @Column(name = "purchase_dt")
    public Timestamp getPurchaseDt() {
        return purchaseDt;
    }

    public void setPurchaseDt(Timestamp purchaseDt) {
        this.purchaseDt = purchaseDt;
    }

    @Basic
    @Column(name = "modify_dt")
    public Timestamp getModifyDt() {
        return modifyDt;
    }

    public void setModifyDt(Timestamp modifyDt) {
        this.modifyDt = modifyDt;
    }

    @Basic
    @Column(name = "refund_dt")
    public Timestamp getRefundDt() {
        return refundDt;
    }

    public void setRefundDt(Timestamp refundDt) {
        this.refundDt = refundDt;
    }

    @Basic
    @Column(name = "order_status")
    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    @Basic
    @Column(name = "refund_amount")
    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

    @Basic
    @Column(name = "refund_reason")
    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    @Basic
    @Column(name = "contract_id")
    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    @Basic
    @Column(name = "Wip")
    public String getWip() {
        return wip;
    }

    public void setWip(String wip) {
        this.wip = wip;
    }

    @Basic
    @Column(name = "Service_provider")
    public String getServiceProvider() {
        return serviceProvider;
    }

    public void setServiceProvider(String serviceProvider) {
        this.serviceProvider = serviceProvider;
    }

    @Basic
    @Column(name = "Is_delete")
    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        报价精品详细表精品Model that = (报价精品详细表精品Model) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (编号 != null ? !编号.equals(that.编号) : that.编号 != null) return false;
        if (comboId != null ? !comboId.equals(that.comboId) : that.comboId != null) return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (预计施工时间 != null ? !预计施工时间.equals(that.预计施工时间) : that.预计施工时间 != null) return false;
        if (实际施工日期 != null ? !实际施工日期.equals(that.实际施工日期) : that.实际施工日期 != null) return false;
        if (施工种类 != null ? !施工种类.equals(that.施工种类) : that.施工种类 != null) return false;
        if (备注 != null ? !备注.equals(that.备注) : that.备注 != null) return false;
        if (申请人 != null ? !申请人.equals(that.申请人) : that.申请人 != null) return false;
        if (数量 != null ? !数量.equals(that.数量) : that.数量 != null) return false;
        if (purchaseDt != null ? !purchaseDt.equals(that.purchaseDt) : that.purchaseDt != null) return false;
        if (modifyDt != null ? !modifyDt.equals(that.modifyDt) : that.modifyDt != null) return false;
        if (refundDt != null ? !refundDt.equals(that.refundDt) : that.refundDt != null) return false;
        if (orderStatus != null ? !orderStatus.equals(that.orderStatus) : that.orderStatus != null) return false;
        if (refundAmount != null ? !refundAmount.equals(that.refundAmount) : that.refundAmount != null) return false;
        if (refundReason != null ? !refundReason.equals(that.refundReason) : that.refundReason != null) return false;
        if (contractId != null ? !contractId.equals(that.contractId) : that.contractId != null) return false;
        if (wip != null ? !wip.equals(that.wip) : that.wip != null) return false;
        if (serviceProvider != null ? !serviceProvider.equals(that.serviceProvider) : that.serviceProvider != null)
            return false;
        if (isDelete != null ? !isDelete.equals(that.isDelete) : that.isDelete != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (编号 != null ? 编号.hashCode() : 0);
        result = 31 * result + (comboId != null ? comboId.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (预计施工时间 != null ? 预计施工时间.hashCode() : 0);
        result = 31 * result + (实际施工日期 != null ? 实际施工日期.hashCode() : 0);
        result = 31 * result + (施工种类 != null ? 施工种类.hashCode() : 0);
        result = 31 * result + (备注 != null ? 备注.hashCode() : 0);
        result = 31 * result + (申请人 != null ? 申请人.hashCode() : 0);
        result = 31 * result + (数量 != null ? 数量.hashCode() : 0);
        result = 31 * result + (purchaseDt != null ? purchaseDt.hashCode() : 0);
        result = 31 * result + (modifyDt != null ? modifyDt.hashCode() : 0);
        result = 31 * result + (refundDt != null ? refundDt.hashCode() : 0);
        result = 31 * result + (orderStatus != null ? orderStatus.hashCode() : 0);
        result = 31 * result + (refundAmount != null ? refundAmount.hashCode() : 0);
        result = 31 * result + (refundReason != null ? refundReason.hashCode() : 0);
        result = 31 * result + (contractId != null ? contractId.hashCode() : 0);
        result = 31 * result + (wip != null ? wip.hashCode() : 0);
        result = 31 * result + (serviceProvider != null ? serviceProvider.hashCode() : 0);
        result = 31 * result + (isDelete != null ? isDelete.hashCode() : 0);
        return result;
    }
}
